package com.ruoyi.doc.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 内容类型对象 content_type
 * 
 * @author yuanpingfang
 * @date 2021-03-30
 */
public class ContentType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 内容类型标识 */
    @Excel(name = "内容类型标识")
    private String contentTypeId;

    /** 上级类型标识 */
    private String parentTypeId;

    /** 是否有表 */
    private String hasTable;

    /** 名称 */
    @Excel(name = "名称")
    private String description;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdatedStamp;

    /** 最后更新事务时间 */
    private Date lastUpdatedTxStamp;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdStamp;

    /** 创建事务时间 */
    private Date createdTxStamp;

    public void setContentTypeId(String contentTypeId) 
    {
        this.contentTypeId = contentTypeId;
    }

    public String getContentTypeId() 
    {
        return contentTypeId;
    }
    public void setParentTypeId(String parentTypeId) 
    {
        this.parentTypeId = parentTypeId;
    }

    public String getParentTypeId() 
    {
        return parentTypeId;
    }
    public void setHasTable(String hasTable) 
    {
        this.hasTable = hasTable;
    }

    public String getHasTable() 
    {
        return hasTable;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setLastUpdatedStamp(Date lastUpdatedStamp) 
    {
        this.lastUpdatedStamp = lastUpdatedStamp;
    }

    public Date getLastUpdatedStamp() 
    {
        return lastUpdatedStamp;
    }
    public void setLastUpdatedTxStamp(Date lastUpdatedTxStamp) 
    {
        this.lastUpdatedTxStamp = lastUpdatedTxStamp;
    }

    public Date getLastUpdatedTxStamp() 
    {
        return lastUpdatedTxStamp;
    }
    public void setCreatedStamp(Date createdStamp) 
    {
        this.createdStamp = createdStamp;
    }

    public Date getCreatedStamp() 
    {
        return createdStamp;
    }
    public void setCreatedTxStamp(Date createdTxStamp) 
    {
        this.createdTxStamp = createdTxStamp;
    }

    public Date getCreatedTxStamp() 
    {
        return createdTxStamp;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("contentTypeId", getContentTypeId())
            .append("parentTypeId", getParentTypeId())
            .append("hasTable", getHasTable())
            .append("description", getDescription())
            .append("lastUpdatedStamp", getLastUpdatedStamp())
            .append("lastUpdatedTxStamp", getLastUpdatedTxStamp())
            .append("createdStamp", getCreatedStamp())
            .append("createdTxStamp", getCreatedTxStamp())
            .toString();
    }
}
